import processing.opengl.*;
import processing.video.*;

void setup() 
{
  size(640, 640, OPENGL);  // OPENGL
  smooth();
  stroke(#033649, 128);
  strokeWeight(4);
  fill(#CDB380, 64);
  dly = 150;
  // note: framerate based on a 150 ms delay value
  mm = new MovieMaker(this, width, height, "cube_boxes.mov", 6, MovieMaker.ANIMATION, MovieMaker.HIGH);
  loop();
}

MovieMaker mm;

int o = 0;    // offset into data array
int st = 36;  // stretch
int sz = 34;  // size
int dly;

// between 100 and 120 solutions
int sol[][][] =
{
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {9, 8, 6}, {10, 8, 6}, {10, 9, 6}, {10, 10, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {9, 8, 6}, {10, 8, 6}, {10, 8, 5}, {10, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {9, 8, 6}, {10, 8, 6}, {10, 7, 6}, {10, 6, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {9, 8, 6}, {10, 8, 6}, {10, 8, 7}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 7}, {8, 8, 8}, {8, 9, 8}, {8, 10, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 7}, {8, 8, 8}, {9, 8, 8}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 7}, {8, 8, 8}, {8, 7, 8}, {8, 6, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 7}, {8, 8, 8}, {7, 8, 8}, {6, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 7}, {8, 8, 8}, {8, 9, 8}, {8, 10, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {7, 8, 6}, {6, 8, 6}, {6, 8, 5}, {6, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {7, 8, 6}, {6, 8, 6}, {6, 7, 6}, {6, 6, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {7, 8, 6}, {6, 8, 6}, {6, 8, 7}, {6, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {7, 8, 6}, {6, 8, 6}, {6, 9, 6}, {6, 10, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {7, 8, 6}, {6, 8, 6}, {6, 8, 5}, {6, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 5}, {8, 8, 4}, {8, 7, 4}, {8, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 5}, {8, 8, 4}, {7, 8, 4}, {6, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 5}, {8, 8, 4}, {8, 9, 4}, {8, 10, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 5}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {8, 8, 5}, {8, 8, 4}, {8, 7, 4}, {8, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {9, 8, 6}, {10, 8, 6}, {10, 8, 7}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 7}, {10, 6, 8}, {10, 7, 8}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 7}, {10, 6, 8}, {11, 6, 8}, {12, 6, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 7}, {10, 6, 8}, {10, 5, 8}, {10, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 7}, {10, 6, 8}, {9, 6, 8}, {8, 6, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 7}, {10, 6, 8}, {10, 7, 8}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 7, 6}, {10, 8, 6}, {11, 8, 6}, {12, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 7, 6}, {10, 8, 6}, {10, 8, 7}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 7, 6}, {10, 8, 6}, {9, 8, 6}, {8, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 7, 6}, {10, 8, 6}, {10, 8, 5}, {10, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 7, 6}, {10, 8, 6}, {11, 8, 6}, {12, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 5}, {10, 6, 4}, {10, 5, 4}, {10, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 5}, {10, 6, 4}, {9, 6, 4}, {8, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 5}, {10, 6, 4}, {10, 7, 4}, {10, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 5}, {10, 6, 4}, {11, 6, 4}, {12, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 5}, {10, 6, 4}, {10, 5, 4}, {10, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 5, 6}, {10, 4, 6}, {9, 4, 6}, {8, 4, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 5, 6}, {10, 4, 6}, {10, 4, 5}, {10, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 5, 6}, {10, 4, 6}, {11, 4, 6}, {12, 4, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 5, 6}, {10, 4, 6}, {10, 4, 7}, {10, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 5, 6}, {10, 4, 6}, {9, 4, 6}, {8, 4, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {9, 6, 6}, {10, 6, 6}, {10, 6, 7}, {10, 6, 8}, {10, 7, 8}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {7, 4, 6}, {6, 4, 6}, {6, 4, 5}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {7, 4, 6}, {6, 4, 6}, {6, 3, 6}, {6, 2, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {7, 4, 6}, {6, 4, 6}, {6, 4, 7}, {6, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {7, 4, 6}, {6, 4, 6}, {6, 5, 6}, {6, 6, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {7, 4, 6}, {6, 4, 6}, {6, 4, 5}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 5}, {8, 4, 4}, {8, 3, 4}, {8, 2, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 5}, {8, 4, 4}, {7, 4, 4}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 5}, {8, 4, 4}, {8, 5, 4}, {8, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 5}, {8, 4, 4}, {9, 4, 4}, {10, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 5}, {8, 4, 4}, {8, 3, 4}, {8, 2, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {9, 4, 6}, {10, 4, 6}, {10, 4, 7}, {10, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {9, 4, 6}, {10, 4, 6}, {10, 5, 6}, {10, 6, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {9, 4, 6}, {10, 4, 6}, {10, 4, 5}, {10, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {9, 4, 6}, {10, 4, 6}, {10, 3, 6}, {10, 2, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {9, 4, 6}, {10, 4, 6}, {10, 4, 7}, {10, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 7}, {8, 4, 8}, {8, 5, 8}, {8, 6, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 7}, {8, 4, 8}, {9, 4, 8}, {10, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 7}, {8, 4, 8}, {8, 3, 8}, {8, 2, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 7}, {8, 4, 8}, {7, 4, 8}, {6, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {8, 4, 7}, {8, 4, 8}, {8, 5, 8}, {8, 6, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 5, 6}, {8, 4, 6}, {7, 4, 6}, {6, 4, 6}, {6, 4, 5}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 5}, {6, 6, 4}, {6, 5, 4}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 5}, {6, 6, 4}, {5, 6, 4}, {4, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 5}, {6, 6, 4}, {6, 7, 4}, {6, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 5}, {6, 6, 4}, {7, 6, 4}, {8, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 5}, {6, 6, 4}, {6, 5, 4}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 5, 6}, {6, 4, 6}, {5, 4, 6}, {4, 4, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 5, 6}, {6, 4, 6}, {6, 4, 5}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 5, 6}, {6, 4, 6}, {7, 4, 6}, {8, 4, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 5, 6}, {6, 4, 6}, {6, 4, 7}, {6, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 5, 6}, {6, 4, 6}, {5, 4, 6}, {4, 4, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 7}, {6, 6, 8}, {6, 7, 8}, {6, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 7}, {6, 6, 8}, {7, 6, 8}, {8, 6, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 7}, {6, 6, 8}, {6, 5, 8}, {6, 4, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 7}, {6, 6, 8}, {5, 6, 8}, {4, 6, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 7}, {6, 6, 8}, {6, 7, 8}, {6, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 7, 6}, {6, 8, 6}, {7, 8, 6}, {8, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 7, 6}, {6, 8, 6}, {6, 8, 7}, {6, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 7, 6}, {6, 8, 6}, {5, 8, 6}, {4, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 7, 6}, {6, 8, 6}, {6, 8, 5}, {6, 8, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 7, 6}, {6, 8, 6}, {7, 8, 6}, {8, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {7, 6, 6}, {6, 6, 6}, {6, 6, 5}, {6, 6, 4}, {6, 5, 4}, {6, 4, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 6, 5}, {8, 6, 6}, {8, 7, 6}, {8, 8, 6}, {9, 8, 6}, {10, 8, 6}, {10, 8, 7}, {10, 8, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 5}, {10, 8, 6}, {10, 9, 6}, {10, 10, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 5}, {10, 8, 6}, {11, 8, 6}, {12, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 5}, {10, 8, 6}, {10, 7, 6}, {10, 6, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 5}, {10, 8, 6}, {9, 8, 6}, {8, 8, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 5}, {10, 8, 6}, {10, 9, 6}, {10, 10, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 9, 4}, {10, 10, 4}, {11, 10, 4}, {12, 10, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 9, 4}, {10, 10, 4}, {10, 10, 5}, {10, 10, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 9, 4}, {10, 10, 4}, {9, 10, 4}, {8, 10, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 9, 4}, {10, 10, 4}, {10, 10, 3}, {10, 10, 2} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 9, 4}, {10, 10, 4}, {11, 10, 4}, {12, 10, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 3}, {10, 8, 2}, {10, 7, 2}, {10, 6, 2} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 3}, {10, 8, 2}, {9, 8, 2}, {8, 8, 2} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 3}, {10, 8, 2}, {10, 9, 2}, {10, 10, 2} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 3}, {10, 8, 2}, {11, 8, 2}, {12, 8, 2} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 3}, {10, 8, 2}, {10, 7, 2}, {10, 6, 2} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 7, 4}, {10, 6, 4}, {9, 6, 4}, {8, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 7, 4}, {10, 6, 4}, {10, 6, 3}, {10, 6, 2} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 7, 4}, {10, 6, 4}, {11, 6, 4}, {12, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 7, 4}, {10, 6, 4}, {10, 6, 5}, {10, 6, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 7, 4}, {10, 6, 4}, {9, 6, 4}, {8, 6, 4} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {9, 8, 4}, {10, 8, 4}, {10, 8, 5}, {10, 8, 6}, {10, 9, 6}, {10, 10, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {8, 8, 5}, {8, 8, 6}, {8, 9, 6}, {8, 10, 6}, {9, 10, 6}, {10, 10, 6} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {8, 8, 5}, {8, 8, 6}, {8, 9, 6}, {8, 10, 6}, {8, 10, 7}, {8, 10, 8} },
{ {0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {2, 0, 1}, {2, 1, 1}, {3, 1, 1}, {4, 1, 1}, {4, 1, 2}, {4, 2, 2}, {4, 3, 2}, {5, 3, 2}, {5, 3, 3}, {5, 4, 3}, {5, 5, 3}, {6, 5, 3}, {7, 5, 3}, {7, 5, 4}, {7, 6, 4}, {8, 6, 4}, {8, 7, 4}, {8, 8, 4}, {8, 8, 5}, {8, 8, 6}, {8, 9, 6}, {8, 10, 6}, {7, 10, 6}, {6, 10, 6} },
{ {-255,-255,-255} }
};

void draw() {

  rotateX(-PI/8.0);
  rotateY(-PI/4.0);
  translate(125,50,0);
  background(#E8DDCB);
  
  if(sol[o][0][0] == -255) { 
    noLoop();
    o=0;
    mm.finish();
  }
  for( int i=0; i<27; i++ ) {
    pushMatrix();
    translate(sol[o][i][0]*st, sol[o][i][1]*st, -sol[o][i][2]*st);
    box(sz); 
    popMatrix();
  }
  delay(dly);
  o++;
  mm.addFrame();
}
